<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.8.16" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>LEAF: tSimplePoly</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <script type="text/javascript" src="../js/iframeResizer.contentWindow.min.js"></script>
    <!-- <script src="/js/template.js"></script> -->
     <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script> 
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <!-- <link rel="stylesheet" href="/css/tachyons.css" type="text/css" /> -->
</head>
<body class="bg-washed-green black-70 ph0 sans-serif" onload="iframeResizePipe()">
    <div>
        <!-- do not remove this div, it is closed by doxygen! -->
        <div id="titlearea">
            <table cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- end header part -->
    </div>
</body>
</html><!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">tSimplePoly<div class="ingroups"><a class="el" href="group__midi.html">MIDI</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Polyphony handler.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaad03d289d4860fd6fc570e359da13f15"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#gaad03d289d4860fd6fc570e359da13f15">tSimplePoly_init</a> (tSimplePoly *const poly, int maxNumVoices, <a class="el" href="struct_l_e_a_f.html">LEAF</a> *const leaf)</td></tr>
<tr class="memdesc:gaad03d289d4860fd6fc570e359da13f15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a tSimplePoly to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance.  <a href="group__tsimplepoly.html#gaad03d289d4860fd6fc570e359da13f15">More...</a><br /></td></tr>
<tr class="separator:gaad03d289d4860fd6fc570e359da13f15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67391919fd2cf8b80b80b9a74f0a2f02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga67391919fd2cf8b80b80b9a74f0a2f02">tSimplePoly_initToPool</a> (tSimplePoly *const poly, int maxNumVoices, tMempool *const pool)</td></tr>
<tr class="memdesc:ga67391919fd2cf8b80b80b9a74f0a2f02"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a tSimplePoly to a specified mempool.  <a href="group__tsimplepoly.html#ga67391919fd2cf8b80b80b9a74f0a2f02">More...</a><br /></td></tr>
<tr class="separator:ga67391919fd2cf8b80b80b9a74f0a2f02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae112285fcb27b1b6822b5db474b892d7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#gae112285fcb27b1b6822b5db474b892d7">tSimplePoly_free</a> (tSimplePoly *const poly)</td></tr>
<tr class="memdesc:gae112285fcb27b1b6822b5db474b892d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free a tSimplePoly from its mempool.  <a href="group__tsimplepoly.html#gae112285fcb27b1b6822b5db474b892d7">More...</a><br /></td></tr>
<tr class="separator:gae112285fcb27b1b6822b5db474b892d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga704023c95d0eef34c4746a4489626bd9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga704023c95d0eef34c4746a4489626bd9">tSimplePoly_noteOn</a> (tSimplePoly *const poly, int note, uint8_t vel)</td></tr>
<tr class="memdesc:ga704023c95d0eef34c4746a4489626bd9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a note with a given velocity to the poly handler.  <a href="group__tsimplepoly.html#ga704023c95d0eef34c4746a4489626bd9">More...</a><br /></td></tr>
<tr class="separator:ga704023c95d0eef34c4746a4489626bd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12fc7c78f1e2fcd0016a438374eb4ec3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga12fc7c78f1e2fcd0016a438374eb4ec3">tSimplePoly_noteOff</a> (tSimplePoly *const poly, uint8_t note)</td></tr>
<tr class="memdesc:ga12fc7c78f1e2fcd0016a438374eb4ec3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a note from the poly handler.  <a href="group__tsimplepoly.html#ga12fc7c78f1e2fcd0016a438374eb4ec3">More...</a><br /></td></tr>
<tr class="separator:ga12fc7c78f1e2fcd0016a438374eb4ec3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6d801960d20e16f81eff12b420a904c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga6d801960d20e16f81eff12b420a904c8">tSimplePoly_deactivateVoice</a> (tSimplePoly *const polyh, uint8_t voice)</td></tr>
<tr class="separator:ga6d801960d20e16f81eff12b420a904c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga668c915adab45224835268b08c7f4c80"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga668c915adab45224835268b08c7f4c80">tSimplePoly_markPendingNoteOff</a> (tSimplePoly *const polyh, uint8_t note)</td></tr>
<tr class="separator:ga668c915adab45224835268b08c7f4c80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9a78b4407716cd48468420194f39d811"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga9a78b4407716cd48468420194f39d811">tSimplePoly_findVoiceAssignedToNote</a> (tSimplePoly *const polyh, uint8_t note)</td></tr>
<tr class="memdesc:ga9a78b4407716cd48468420194f39d811"><td class="mdescLeft">&#160;</td><td class="mdescRight">Find if there is a voice with that note &ndash; useful for note offs where you want to wait to remove it from the poly until the release phase of the envelope is finished.  <a href="group__tsimplepoly.html#ga9a78b4407716cd48468420194f39d811">More...</a><br /></td></tr>
<tr class="separator:ga9a78b4407716cd48468420194f39d811"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae11bb769f332621148bfe4e9e966cc1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#gae11bb769f332621148bfe4e9e966cc1d">tSimplePoly_setNumVoices</a> (tSimplePoly *const poly, uint8_t numVoices)</td></tr>
<tr class="memdesc:gae11bb769f332621148bfe4e9e966cc1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the number of voices available to play notes.  <a href="group__tsimplepoly.html#gae11bb769f332621148bfe4e9e966cc1d">More...</a><br /></td></tr>
<tr class="separator:gae11bb769f332621148bfe4e9e966cc1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga574023fdcde9863f60a88c5171595628"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga574023fdcde9863f60a88c5171595628">tSimplePoly_getNumVoices</a> (tSimplePoly *const poly)</td></tr>
<tr class="memdesc:ga574023fdcde9863f60a88c5171595628"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current number of voices available to play notes.  <a href="group__tsimplepoly.html#ga574023fdcde9863f60a88c5171595628">More...</a><br /></td></tr>
<tr class="separator:ga574023fdcde9863f60a88c5171595628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7927a37f0b05301c58923ee0bd9b1376"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga7927a37f0b05301c58923ee0bd9b1376">tSimplePoly_getNumActiveVoices</a> (tSimplePoly *const poly)</td></tr>
<tr class="memdesc:ga7927a37f0b05301c58923ee0bd9b1376"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of voices currently playing notes.  <a href="group__tsimplepoly.html#ga7927a37f0b05301c58923ee0bd9b1376">More...</a><br /></td></tr>
<tr class="separator:ga7927a37f0b05301c58923ee0bd9b1376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga04edeaf26303e4fd57988b3144063590"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga04edeaf26303e4fd57988b3144063590">tSimplePoly_getPitch</a> (tSimplePoly *const poly, uint8_t voice)</td></tr>
<tr class="memdesc:ga04edeaf26303e4fd57988b3144063590"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current MIDI note number of a given voice.  <a href="group__tsimplepoly.html#ga04edeaf26303e4fd57988b3144063590">More...</a><br /></td></tr>
<tr class="separator:ga04edeaf26303e4fd57988b3144063590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae147f59b6da64f3af94407da5a6ec3db"><td class="memItemLeft" align="right" valign="top"><a id="gae147f59b6da64f3af94407da5a6ec3db"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#gae147f59b6da64f3af94407da5a6ec3db">tSimplePoly_getPitchAndCheckActive</a> (tSimplePoly *const polyh, uint8_t voice)</td></tr>
<tr class="memdesc:gae147f59b6da64f3af94407da5a6ec3db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns negative one if the voice is inactive. <br /></td></tr>
<tr class="separator:gae147f59b6da64f3af94407da5a6ec3db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga85311b798b65407dcd4de68a8ed7d52d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga85311b798b65407dcd4de68a8ed7d52d">tSimplePoly_getVelocity</a> (tSimplePoly *const poly, uint8_t voice)</td></tr>
<tr class="memdesc:ga85311b798b65407dcd4de68a8ed7d52d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current MIDI velocity of a given voice.  <a href="group__tsimplepoly.html#ga85311b798b65407dcd4de68a8ed7d52d">More...</a><br /></td></tr>
<tr class="separator:ga85311b798b65407dcd4de68a8ed7d52d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1a55f7b4f9e8926acb9f6126c8e80633"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tsimplepoly.html#ga1a55f7b4f9e8926acb9f6126c8e80633">tSimplePoly_isOn</a> (tSimplePoly *const poly, uint8_t voice)</td></tr>
<tr class="memdesc:ga1a55f7b4f9e8926acb9f6126c8e80633"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current play state of a given voice.  <a href="group__tsimplepoly.html#ga1a55f7b4f9e8926acb9f6126c8e80633">More...</a><br /></td></tr>
<tr class="separator:ga1a55f7b4f9e8926acb9f6126c8e80633"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Polyphony handler. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaad03d289d4860fd6fc570e359da13f15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaad03d289d4860fd6fc570e359da13f15">&#9670;&nbsp;</a></span>tSimplePoly_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tSimplePoly_init </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxNumVoices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_l_e_a_f.html">LEAF</a> *const&#160;</td>
          <td class="paramname"><em>leaf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a tSimplePoly to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the tSimplePoly to initialize. </td></tr>
    <tr><td class="paramname">maxNumVoices</td><td>The maximum number of voices this tSimplePoly can handle at once. </td></tr>
    <tr><td class="paramname">leaf</td><td>A pointer to the leaf instance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga67391919fd2cf8b80b80b9a74f0a2f02"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga67391919fd2cf8b80b80b9a74f0a2f02">&#9670;&nbsp;</a></span>tSimplePoly_initToPool()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tSimplePoly_initToPool </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>maxNumVoices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">tMempool *const&#160;</td>
          <td class="paramname"><em>pool</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a tSimplePoly to a specified mempool. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the tSimplePoly to initialize. </td></tr>
    <tr><td class="paramname">mempool</td><td>A pointer to the tMempool to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae112285fcb27b1b6822b5db474b892d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae112285fcb27b1b6822b5db474b892d7">&#9670;&nbsp;</a></span>tSimplePoly_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tSimplePoly_free </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free a tSimplePoly from its mempool. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the tSimplePoly to free. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga704023c95d0eef34c4746a4489626bd9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga704023c95d0eef34c4746a4489626bd9">&#9670;&nbsp;</a></span>tSimplePoly_noteOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_noteOn </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>note</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>vel</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a note with a given velocity to the poly handler. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">note</td><td>The MIDI note number to add. </td></tr>
    <tr><td class="paramname">vel</td><td>The MIDI velocity of the note to add. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The voice that will play the note. </dd></dl>

</div>
</div>
<a id="ga12fc7c78f1e2fcd0016a438374eb4ec3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga12fc7c78f1e2fcd0016a438374eb4ec3">&#9670;&nbsp;</a></span>tSimplePoly_noteOff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_noteOff </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>note</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Remove a note from the poly handler. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">note</td><td>The MIDI note number to remove. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The voice that was playing the removed note. </dd></dl>

</div>
</div>
<a id="ga6d801960d20e16f81eff12b420a904c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6d801960d20e16f81eff12b420a904c8">&#9670;&nbsp;</a></span>tSimplePoly_deactivateVoice()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tSimplePoly_deactivateVoice </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>polyh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>voice</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga668c915adab45224835268b08c7f4c80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga668c915adab45224835268b08c7f4c80">&#9670;&nbsp;</a></span>tSimplePoly_markPendingNoteOff()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_markPendingNoteOff </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>polyh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>note</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9a78b4407716cd48468420194f39d811"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9a78b4407716cd48468420194f39d811">&#9670;&nbsp;</a></span>tSimplePoly_findVoiceAssignedToNote()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_findVoiceAssignedToNote </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>polyh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>note</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Find if there is a voice with that note &ndash; useful for note offs where you want to wait to remove it from the poly until the release phase of the envelope is finished. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname"></td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae11bb769f332621148bfe4e9e966cc1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae11bb769f332621148bfe4e9e966cc1d">&#9670;&nbsp;</a></span>tSimplePoly_setNumVoices()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tSimplePoly_setNumVoices </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>numVoices</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the number of voices available to play notes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">numVoices</td><td>The new number of available voices. Cannot be greater than the max number voices given on initialization. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga574023fdcde9863f60a88c5171595628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga574023fdcde9863f60a88c5171595628">&#9670;&nbsp;</a></span>tSimplePoly_getNumVoices()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_getNumVoices </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current number of voices available to play notes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current number of voices available to play notes. </dd></dl>

</div>
</div>
<a id="ga7927a37f0b05301c58923ee0bd9b1376"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7927a37f0b05301c58923ee0bd9b1376">&#9670;&nbsp;</a></span>tSimplePoly_getNumActiveVoices()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_getNumActiveVoices </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the number of voices currently playing notes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of voices currently playing notes. </dd></dl>

</div>
</div>
<a id="ga04edeaf26303e4fd57988b3144063590"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga04edeaf26303e4fd57988b3144063590">&#9670;&nbsp;</a></span>tSimplePoly_getPitch()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_getPitch </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>voice</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current MIDI note number of a given voice. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">voice</td><td>The voice to get the MIDI note number of. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The MIDI note number of the given voice. </dd></dl>

</div>
</div>
<a id="ga85311b798b65407dcd4de68a8ed7d52d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga85311b798b65407dcd4de68a8ed7d52d">&#9670;&nbsp;</a></span>tSimplePoly_getVelocity()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_getVelocity </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>voice</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current MIDI velocity of a given voice. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">voice</td><td>The voice to get the MIDI velocity of. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current MIDI velocity of the given voice. </dd></dl>

</div>
</div>
<a id="ga1a55f7b4f9e8926acb9f6126c8e80633"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1a55f7b4f9e8926acb9f6126c8e80633">&#9670;&nbsp;</a></span>tSimplePoly_isOn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tSimplePoly_isOn </td>
          <td>(</td>
          <td class="paramtype">tSimplePoly *const&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>voice</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current play state of a given voice. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">poly</td><td>A pointer to the relevant tSimplePoly. </td></tr>
    <tr><td class="paramname">voice</td><td>The voice to get the state of. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current play state of the given voice. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
</body>
</html>
